package com.catazy.module_project.local

import androidx.room.Database
import androidx.room.RoomDatabase
import com.catazy.module_project.bean.ArticleDetail
import com.catazy.module_project.bean.ProjectBean
import com.catazy.module_project.bean.Tag
import com.catazy.module_project.local.dao.ArticleDetailDao
import com.catazy.module_project.local.dao.ProjectTreeDao
import com.catazy.module_project.local.dao.TagDao

/**
 * 作者: Tao
 * 日期: 2024/5/10
 * 时间: 11:07
 * 描述:
 */
@Database(
    entities = [ProjectBean::class, ArticleDetail::class, Tag::class],
    version = 2,
    exportSchema = false
)
abstract class AppDatabase : RoomDatabase() {
    abstract fun projectTreeDao(): ProjectTreeDao
    abstract fun articleDetailDao(): ArticleDetailDao
    abstract fun tagDao(): TagDao
}